/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="PACOTE")
public class PacoteProteu implements Serializable{

    @Id
    @Column(name="PCT_ST_CODIGO")
    private String pctStCodigo;
    @Id
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;

    @Column(name="PCT_ST_DESCRICAO")
    private String pctStDescricao;
    @Column(name="PCT_FL_VALOR")
    private Float pctFlValor;
    @Column(name="PCT_SYS_USUARIO")
    private String pctSysUsuario;
    @Column(name="PCT_SYS_DATA")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date pctSysData;


    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public Float getPctFlValor() {
        return pctFlValor;
    }

    public void setPctFlValor(Float pctFlValor) {
        this.pctFlValor = pctFlValor;
    }

    public String getPctStCodigo() {
        return pctStCodigo;
    }

    public void setPctStCodigo(String pctStCodigo) {
        this.pctStCodigo = pctStCodigo;
    }

    public String getPctStDescricao() {
        return pctStDescricao;
    }

    public void setPctStDescricao(String pctStDescricao) {
        this.pctStDescricao = pctStDescricao;
    }

    public Date getPctSysData() {
        return pctSysData;
    }

    public void setPctSysData(Date pctSysData) {
        this.pctSysData = pctSysData;
    }

    public String getPctSysUsuario() {
        return pctSysUsuario;
    }

    public void setPctSysUsuario(String pctSysUsuario) {
        this.pctSysUsuario = pctSysUsuario;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final PacoteProteu other = (PacoteProteu) obj;
        if ((this.pctStCodigo == null) ? (other.pctStCodigo != null) : !this.pctStCodigo.equals(other.pctStCodigo)) {
            return false;
        }
        if ((this.conStCodigo == null) ? (other.conStCodigo != null) : !this.conStCodigo.equals(other.conStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 29 * hash + (this.pctStCodigo != null ? this.pctStCodigo.hashCode() : 0);
        hash = 29 * hash + (this.conStCodigo != null ? this.conStCodigo.hashCode() : 0);
        return hash;
    }



}
